package il.ac.braude.sona.table;


import il.ac.braude.sona.database.ChangeRequest;
import il.ac.braude.sona.infogui.ChangeRequestInfoFrame;
import il.ac.braude.sona.ocsf.server.DatabaseController;
import il.ac.braude.sona.strings.Resources;
import il.ac.braude.sona.ui.skeleton.SONAFrame;

import javax.swing.JScrollPane;
import javax.swing.JTable;

public class ChangeRequestTableFrame extends SONAFrame {
	private JTable mTable;

	public ChangeRequestTableFrame() {
		setTitle(Resources.Strings.ViewAllRequests);
	}

	public void setTable(JTable table) {
		mTable = table;
		mTable.setFillsViewportHeight(true);
		JScrollPane sp = new JScrollPane();
		sp.getViewport().add(mTable);
		getContentPane().add(sp);
		pack();
	}
}
